using System;

namespace B.S.NewMedical.Api.Read.DTOS.Department
{
    /// <summary>
    /// 科室显示DTO（根据界面字段要求）
    /// </summary>
    public class DepartmentDisplayDto
    {
        /// <summary>
        /// 科室ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 科室名称
        /// </summary>
        public string? DepartmentName { get; set; }

        /// <summary>
        /// 级别（一级科室/二级科室）
        /// </summary>
        public string? Level { get; set; }

        /// <summary>
        /// 状态（科室上线状态）
        /// </summary>
        public bool IsOnline { get; set; }

        /// <summary>
        /// 状态显示文本
        /// </summary>
        public string? StatusText => IsOnline ? "在线" : "离线";

        /// <summary>
        /// 科室类型（门诊/住院）
        /// </summary>
        public string? Type { get; set; }

        /// <summary>
        /// 父级科室ID
        /// </summary>
        public int ParetId { get; set; }

        /// <summary>
        /// 父级科室名称（关联查询）
        /// </summary>
        public string? ParentDepartmentName { get; set; }

        /// <summary>
        /// 科室位置
        /// </summary>
        public string? DepartmentAddr { get; set; }

        /// <summary>
        /// 是否支持急诊服务
        /// </summary>
        public bool IsEmergencyService { get; set; }

        /// <summary>
        /// 上传人
        /// </summary>
        public string? CreatePeople { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? remark { get; set; }
    }
}